package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicMesWareDO;
import com.plat.helper.SearchConditions;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * ��ݷ��ʶ���ӿ�
 * @since 2013-08-28
 */
public interface LogicMesWareDAO {

    /**
     * �������
     * @param logicMesWareDO
     * @return ������ݵ�����
     */
    public String insertLogicMesWareDO(LogicMesWareDO logicMesWareDO);

    /**
     * ͳ�Ƽ�¼��
     * @param logicMesWareDO
     * @return ����ļ�¼��
     */
    public Integer countLogicMesWareDOByExample(LogicMesWareDO logicMesWareDO);

    /**
     * ���¼�¼
     * @param logicMesWareDO
     * @return ��Ӱ�������
     */
    public Integer updateLogicMesWareDO(LogicMesWareDO logicMesWareDO);

    /**
     * ��ȡ�����б�
     * @param logicMesWareDO
     * @return �����б�
     */
    public List<LogicMesWareDO> findListByExample(LogicMesWareDO logicMesWareDO);

    /**
     * ��������ȡlogicMesWareDO
     * @param id
     * @return logicMesWareDO
     */
    public LogicMesWareDO findLogicMesWareDOByPrimaryKey(String id);

    /**
     * ɾ���¼
     * @param id
     * @return ��Ӱ�������
     */
    public Integer deleteLogicMesWareDOByPrimaryKey(String id);
    
    public List<LogicMesWareDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;
}